/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.kj.order.entity;

import javax.validation.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * order_shippingEntity
 * @author hzy
 * @version 2019-11-29
 */
@Table(name="kj_order_shipping", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="order_id", attrName="orderId", label="订单ID"),
		@Column(name="receiver_name", attrName="receiverName", label="收货人全名", queryType=QueryType.LIKE),
		@Column(name="receiver_phone", attrName="receiverPhone", label="收件电话"),
		@Column(name="receiver_mobile", attrName="receiverMobile", label="移动电话"),
		@Column(name="receiver_state", attrName="receiverState", label="收件人省份"),
		@Column(name="receiver_city", attrName="receiverCity", label="收件人城市"),
		@Column(name="receiver_district", attrName="receiverDistrict", label="收件人区/县"),
		@Column(name="receiver_address", attrName="receiverAddress", label="收件地址"),
		@Column(name="receiver_zip", attrName="receiverZip", label="邮政编码"),
		@Column(includeEntity=DataEntity.class),
	}, orderBy="a.update_date DESC"
)
public class KjOrderShipping extends DataEntity<KjOrderShipping> {
	
	private static final long serialVersionUID = 1L;
	private String orderId;		// 订单ID
	private String receiverName;		// 收货人全名
	private String receiverPhone;		// 收件电话
	private String receiverMobile;		// 移动电话
	private String receiverState;		// 收件人省份
	private String receiverCity;		// 收件人城市
	private String receiverDistrict;		// 收件人区/县
	private String receiverAddress;		// 收件地址
	private String receiverZip;		// 邮政编码
	
	public KjOrderShipping() {
		this(null);
	}

	public KjOrderShipping(String id){
		super(id);
	}
	
	@NotBlank(message="订单ID不能为空")
	@Length(min=0, max=64, message="订单ID长度不能超过 64 个字符")
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	@Length(min=0, max=255, message="收货人全名长度不能超过 255 个字符")
	public String getReceiverName() {
		return receiverName;
	}

	public void setReceiverName(String receiverName) {
		this.receiverName = receiverName;
	}
	
	@Length(min=0, max=255, message="收件电话长度不能超过 255 个字符")
	public String getReceiverPhone() {
		return receiverPhone;
	}

	public void setReceiverPhone(String receiverPhone) {
		this.receiverPhone = receiverPhone;
	}
	
	@Length(min=0, max=255, message="移动电话长度不能超过 255 个字符")
	public String getReceiverMobile() {
		return receiverMobile;
	}

	public void setReceiverMobile(String receiverMobile) {
		this.receiverMobile = receiverMobile;
	}
	
	@Length(min=0, max=255, message="收件人省份长度不能超过 255 个字符")
	public String getReceiverState() {
		return receiverState;
	}

	public void setReceiverState(String receiverState) {
		this.receiverState = receiverState;
	}
	
	@Length(min=0, max=255, message="收件人城市长度不能超过 255 个字符")
	public String getReceiverCity() {
		return receiverCity;
	}

	public void setReceiverCity(String receiverCity) {
		this.receiverCity = receiverCity;
	}
	
	@Length(min=0, max=255, message="收件人区/县长度不能超过 255 个字符")
	public String getReceiverDistrict() {
		return receiverDistrict;
	}

	public void setReceiverDistrict(String receiverDistrict) {
		this.receiverDistrict = receiverDistrict;
	}
	
	public String getReceiverAddress() {
		return receiverAddress;
	}

	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}
	
	@Length(min=0, max=6, message="邮政编码长度不能超过 6 个字符")
	public String getReceiverZip() {
		return receiverZip;
	}

	public void setReceiverZip(String receiverZip) {
		this.receiverZip = receiverZip;
	}
	
}